// import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import ElementUI from 'element-ui';
// import 'element-ui/lib/theme-chalk/index.css';

import directive from './directive' // directive 自定义指令
import dayjs from 'dayjs'
// import Vuex from 'vuex';
import '@/assets/styles/transition.scss' // transition css  页面跳转时切换动画
import '@/assets/styles/my.scss' //  通用css样式 

import { parseTime, resetForm, addDateRange ,selectDictLabel, selectDictLabels, handleTree,uuid2 } from "@/utils/strTools";
import { get, download, post, delet, put } from '@/http/axios'
// 分页组件
import Pagination from "@/components/Pagination";
// 自定义表格工具组件
import RightToolbar from "@/components/RightToolbar"
// 字典标签组件
import DictTag from '@/components/DictTag'
// 字典数据组件
import DictData from '@/components/DictData'

//代码生成下载
import downloadzip from '@/utils/downloadzip'

import './assets/icons' // icon

import modal from '@/utils/modal'

// 全局方法挂载
Vue.prototype.parseTime = parseTime  //解析时间
Vue.prototype.resetForm = resetForm //表单重置
Vue.prototype.addDateRange = addDateRange
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.handleTree = handleTree
Vue.prototype.uuid2 = uuid2


Vue.config.productionTip = false
Vue.prototype.$dayjs = dayjs
Vue.$get = Vue.prototype.$get = get
Vue.$download = Vue.prototype.$download = download
Vue.$post = Vue.prototype.$post = post
Vue.$delet = Vue.prototype.$delet = delet
Vue.$put = Vue.prototype.$put = put

// 下载文件
Vue.prototype.$downloadzip = downloadzip
// 模态框对象
Vue.prototype.$modal = modal

// 全局组件挂载
Vue.component('DictTag', DictTag)
Vue.component('Pagination', Pagination)
Vue.component('RightToolbar', RightToolbar)

Vue.use(directive)
// Vue.use(ElementUI);
// Vue.use(Vuex)

DictData.install() //数据字典



new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
